package com.excesys.exsecs.admin.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 业务管理系统操作日志
 *
 * @author luxinchao
 * @date 2023-03-14 14:53:39
 */
@Data
@TableName("business_control_log")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "命令下发日志")
public class ControlLog extends Model<ControlLog> {

	/**
	 * 链路编号
	 */
	@TableId(type = IdType.ASSIGN_UUID)
	@Schema(description = "链路编号")
	private String tracedId;

	/**
	 * 操作人
	 */
	@Schema(description = "操作人")
	private String operBy;

	/**
	 * 操作记录
	 */
	@Schema(description = "操作记录")
	private String operRecord;

	/**
	 * 结果
	 */
	@Schema(description = "结果")
	private String result;

	/**
	 * 业务子系统模块
	 */
	@Schema(description = "业务子系统模块")
	private String serviceModule;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "更新时间")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "更新时间")
	private LocalDateTime updateTime;

}